const users = require("../sql/users");
const sql = require('../sql/mysql');
const jwt = require("jsonwebtoken");

module.exports = (req,res)=>{
    sql.get(users,req.fields).then((data)=>{
     data.reverse();
     res.send({
         code:0,
         msg:"获取成功",
         data,
     })
    })
 }